<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Win32k: edslrare.c 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Win32k
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('a00140.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">edslrare.c 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="a03620_source.html">precomp.h</a>&quot;</code><br />
</div>
<p><a href="a00140_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:a7e945f42b5a95afea4f0752ecb47e5a9"><td class="memItemLeft" align="right" valign="top">LONG&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00140.html#a7e945f42b5a95afea4f0752ecb47e5a9">SLCreate</a> (HWND hwnd, <a class="el" href="a00257.html#ade4a1e740f9d06527c30eea655640da5">PED</a> ped, LPCREATESTRUCT lpCreateStruct)</td></tr>
<tr class="memdesc:a7e945f42b5a95afea4f0752ecb47e5a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">!! CREATESTRUCT AorW and in other routines  <a href="a00140.html#a7e945f42b5a95afea4f0752ecb47e5a9">更多...</a><br /></td></tr>
<tr class="separator:a7e945f42b5a95afea4f0752ecb47e5a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c3e4d6fb962770f67cb1dee79f45e30"><td class="memItemLeft" align="right" valign="top">BOOL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00140.html#a8c3e4d6fb962770f67cb1dee79f45e30">SLUndo</a> (<a class="el" href="a00257.html#ade4a1e740f9d06527c30eea655640da5">PED</a> ped)</td></tr>
<tr class="separator:a8c3e4d6fb962770f67cb1dee79f45e30"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">函数说明</h2>
<a id="a7e945f42b5a95afea4f0752ecb47e5a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e945f42b5a95afea4f0752ecb47e5a9">&#9670;&nbsp;</a></span>SLCreate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LONG SLCreate </td>
          <td>(</td>
          <td class="paramtype">HWND&#160;</td>
          <td class="paramname"><em>hwnd</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="a00257.html#ade4a1e740f9d06527c30eea655640da5">PED</a>&#160;</td>
          <td class="paramname"><em>ped</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">LPCREATESTRUCT&#160;</td>
          <td class="paramname"><em>lpCreateStruct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>!! CREATESTRUCT AorW and in other routines </p>

<p class="definition">在文件 <a class="el" href="a00140_source.html">edslrare.c</a> 第 <a class="el" href="a00140_source.html#l00025">25</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;{</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;    LPSTR lpWindowText;</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    LONG windowStyle = ped-&gt;<a class="code" href="a01901.html#a63d2978bed54249f685782e78ce4d423">pwnd</a>-&gt;style;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160; </div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">     * Do the standard creation stuff</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">if</span> (!<a class="code" href="a00122.html#a1bcaa1b6baec77e98cc2df3c70be0f4b">ECCreate</a>(ped-&gt;<a class="code" href="a01901.html#a63d2978bed54249f685782e78ce4d423">pwnd</a>, ped, windowStyle))</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        <span class="keywordflow">return</span> (-1);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160; </div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">     * Single lines always have no undo and 1 line</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    ped-&gt;<a class="code" href="a01901.html#ae6ba237f88595c95385cfd18629c0440">cLines</a> = 1;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    ped-&gt;undoType = UNDO_NONE;</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160; </div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">     * Check if this edit control is part of a combobox and get a pointer to the</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">     * combobox structure.</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;    <span class="keywordflow">if</span> (windowStyle &amp; ES_COMBOBOX)</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        ped-&gt;<a class="code" href="a01901.html#af0e577c2f3bf59a3136e8b1641b6f9c0">listboxHwnd</a> = <a class="code" href="a03743.html#a8cdabe45f534639f8a257cfc260d3736">GetDlgItem</a>(lpCreateStruct-&gt;hwndParent, CBLISTBOXID);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="preprocessor">#ifdef SUPPORT_LPK</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keywordflow">if</span> (ped-&gt;<a class="code" href="a01901.html#a29e9c1357646dc090d11d6b7e76f9f51">lpfnCharset</a>)</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        (int)(* ped-&gt;<a class="code" href="a01901.html#a29e9c1357646dc090d11d6b7e76f9f51">lpfnCharset</a>)(ped, EDITINTL_CREATEMLSL);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">     * Set the default font to be the system font.</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <a class="code" href="a00122.html#a61a46b4348535c21dff33f8b0f27c31f">ECSetFont</a>(ped, NULL, FALSE);</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160; </div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="comment">/*</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">     * Set the window text if needed. Return false if we can&#39;t set the text</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;<span class="comment">     * SLSetText notifies the parent in case there is a no memory error.</span></div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">     */</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    <span class="keywordflow">if</span> ((PVOID)lpCreateStruct-&gt;lpszName &gt; MM_HIGHEST_USER_ADDRESS)</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;        lpWindowText = REBASEPTR(ped-&gt;<a class="code" href="a01901.html#a63d2978bed54249f685782e78ce4d423">pwnd</a>, (PVOID)lpCreateStruct-&gt;lpszName);</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    <span class="keywordflow">else</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        lpWindowText = (LPSTR)lpCreateStruct-&gt;lpszName;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160; </div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    if ((lpWindowText != NULL)</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;            &amp;&amp; !<a class="code" href="a00365.html#a4ca179c80351774ed4d239e34de28927">IsEmptyString</a>(lpWindowText, ped-&gt;<a class="code" href="a01901.html#afeee4bc01f4c0be43cb8f89d23474f7c">fAnsi</a>)</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;            &amp;&amp; !<a class="code" href="a00125.html#a5957c933778912cf48cd0ee1a7bb4827">ECSetText</a>(ped, lpWindowText)) {</div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordflow">return</span> (-1);</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keywordflow">if</span> (windowStyle &amp; ES_PASSWORD)</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <a class="code" href="a00122.html#a6321a49a13ae3923b1d9efae1c6650c9">ECSetPasswordChar</a>(ped, (<a class="code" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a>)<span class="charliteral">&#39;*&#39;</span>);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00257_source.html#l00649">tagED::cLines</a>, <a class="el" href="a00122_source.html#l00285">ECCreate()</a>, <a class="el" href="a00122_source.html#l00574">ECSetFont()</a>, <a class="el" href="a00122_source.html#l00409">ECSetPasswordChar()</a>, <a class="el" href="a00125_source.html#l02009">ECSetText()</a>, <a class="el" href="a00257_source.html#l00729">tagED::fAnsi</a>, <a class="el" href="a03743_source.html#l00268">GetDlgItem()</a>, <a class="el" href="a00365_source.html#l00290">IsEmptyString()</a>, <a class="el" href="a00257_source.html#l00763">tagED::listboxHwnd</a>, <a class="el" href="a00257_source.html#l00786">tagED::lpfnCharset</a>, <a class="el" href="a00257_source.html#l00675">tagED::pwnd</a> , 以及 <a class="el" href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00131_source.html#l02120">SLEditWndProc()</a>.</p>

</div>
</div>
<a id="a8c3e4d6fb962770f67cb1dee79f45e30"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8c3e4d6fb962770f67cb1dee79f45e30">&#9670;&nbsp;</a></span>SLUndo()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">BOOL SLUndo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00257.html#ade4a1e740f9d06527c30eea655640da5">PED</a>&#160;</td>
          <td class="paramname"><em>ped</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="a00140_source.html">edslrare.c</a> 第 <a class="el" href="a00140_source.html#l00091">91</a> 行定义.</p>
<div class="fragment"><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;{</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;    PBYTE hDeletedText = ped-&gt;hDeletedText;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    BOOL fDelete = (BOOL)(ped-&gt;undoType &amp; UNDO_DELETE);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <a class="code" href="a00365.html#ad92d5fac09a74e3695c68da781de646b">ICH</a> cchDeleted = ped-&gt;cchDeleted;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <a class="code" href="a00365.html#ad92d5fac09a74e3695c68da781de646b">ICH</a> ichDeleted = ped-&gt;ichDeleted;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    BOOL fUpdate = FALSE;</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160; </div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    <span class="keywordflow">if</span> (ped-&gt;undoType == UNDO_NONE) {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160; </div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment">         * No undo...</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    ped-&gt;hDeletedText = NULL;</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    ped-&gt;cchDeleted = 0;</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    ped-&gt;ichDeleted = (<a class="code" href="a00365.html#ad92d5fac09a74e3695c68da781de646b">ICH</a>)-1;</div>
<div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;    ped-&gt;undoType &amp;= ~UNDO_DELETE;</div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;    <span class="keywordflow">if</span> (ped-&gt;undoType == UNDO_INSERT) {</div>
<div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;        ped-&gt;undoType = UNDO_NONE;</div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment">         * Set the selection to the inserted text</span></div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;        <a class="code" href="a00131.html#a584868ac934740bf29cc8379ae876935">SLSetSelection</a>(ped, ped-&gt;ichInsStart, ped-&gt;ichInsEnd);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        ped-&gt;ichInsStart = ped-&gt;ichInsEnd = (<a class="code" href="a00365.html#ad92d5fac09a74e3695c68da781de646b">ICH</a>)-1;</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#ifdef NEVER</span></div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160; </div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">         * Now send a backspace to deleted and save it in the undo buffer...</span></div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        SLCharHandler(pped, VK_BACK);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;        fUpdate = TRUE;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="comment">         * Delete the selected text and save it in undo buff.</span></div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="comment">         * Call ECDeleteText() instead of sending a VK_BACK message</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="comment">         * which results in an EN_UPDATE notification send even before</span></div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="comment">         * we insert the deleted chars. This results in Bug #6610.</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="comment">         * Fix for Bug #6610 -- SANKAR -- 04/19/91 --</span></div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00125.html#a800e25f9f880d2b371077a3e31d1f11b">ECDeleteText</a>(ped)) {</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;            <span class="comment">/*</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;<span class="comment">             * Text was deleted -- flag for update and clear selection</span></div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;<span class="comment">             */</span></div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;            fUpdate = TRUE;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;            <a class="code" href="a00131.html#a584868ac934740bf29cc8379ae876935">SLSetSelection</a>(ped, ichDeleted, ichDeleted);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;        }</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    }</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160; </div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordflow">if</span> (fDelete) {</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        HWND hwndSave = ped-&gt;<a class="code" href="a01901.html#aa72255e7356d612ad72bb45def01fcbb">hwnd</a>; <span class="comment">// Used for validation.</span></div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160; </div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="comment">         * Insert deleted chars. Set the selection to the inserted text.</span></div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;        <a class="code" href="a00131.html#a584868ac934740bf29cc8379ae876935">SLSetSelection</a>(ped, ichDeleted, ichDeleted);</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">#ifdef KOREA</span></div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        <a class="code" href="a00131.html#a60d26f83ca8091a6228d59898bd35658">SLInsertText</a>(ped, hDeletedText, cchDeleted, NULL);</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">#else</span></div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="a00131.html#a60d26f83ca8091a6228d59898bd35658">SLInsertText</a>(ped, hDeletedText, cchDeleted);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        UserGlobalFree(hDeletedText);</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;        <span class="keywordflow">if</span> (!<a class="code" href="a03743.html#ac5ede70e870dc1cf540d7524887e4edc">IsWindow</a>(hwndSave))</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            <span class="keywordflow">return</span> FALSE;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;        <a class="code" href="a00131.html#a584868ac934740bf29cc8379ae876935">SLSetSelection</a>(ped, ichDeleted, ichDeleted + cchDeleted);</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;        fUpdate = TRUE;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;    }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160; </div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    <span class="keywordflow">if</span> (fUpdate) {</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        <span class="comment">/*</span></div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;<span class="comment">         * If we have something to update, send EN_UPDATE before and</span></div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;<span class="comment">         * EN_CHANGE after the actual update.</span></div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;<span class="comment">         * A part of the fix for Bug #6610 -- SANKAR -- 04/19/91 --</span></div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="comment">         */</span></div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        <a class="code" href="a00125.html#a1a1b70e84040ea5b89332b2153855e5e">ECNotifyParent</a>(ped, EN_UPDATE);</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="a00257.html#a4d37f42417d0a890212c7dfd845cb8b6">FChildVisible</a>(ped-&gt;<a class="code" href="a01901.html#aa72255e7356d612ad72bb45def01fcbb">hwnd</a>)) {</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="comment">// JimA changed this to ECInvalidateClient(ped, FALSE) Nov 1994</span></div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="comment">//            GetClientRect(ped-&gt;hwnd, &amp;rcEdit);</span></div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;<span class="comment">//            if (ped-&gt;fBorder &amp;&amp; rcEdit.right - rcEdit.left &amp;&amp; rcEdit.bottom - rcEdit.top) {</span></div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;<span class="comment">//</span></div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;<span class="comment">//                /*</span></div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;<span class="comment">//                 * Don&#39;t invalidate the border so that we avoid flicker</span></div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;<span class="comment">//                 */</span></div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;<span class="comment">//                InflateRect(&amp;rcEdit, -1, -1);</span></div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;<span class="comment">//            }</span></div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="comment">//            NtUserInvalidateRect(ped-&gt;hwnd, &amp;rcEdit, FALSE);</span></div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            <a class="code" href="a00125.html#a62fb6804f89dc2b131e76680f82b46a8">ECInvalidateClient</a>(ped, FALSE);</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        }</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160; </div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;        <a class="code" href="a00125.html#a1a1b70e84040ea5b89332b2153855e5e">ECNotifyParent</a>(ped, EN_CHANGE);</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    }</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160; </div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordflow">return</span> TRUE;</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;}</div>
</div><!-- fragment -->
<p class="reference">引用了 <a class="el" href="a00125_source.html#l01706">ECDeleteText()</a>, <a class="el" href="a00125_source.html#l02076">ECInvalidateClient()</a>, <a class="el" href="a00125_source.html#l01833">ECNotifyParent()</a>, <a class="el" href="a00263_source.html#l00052">FChildVisible()</a>, <a class="el" href="a00257_source.html#l00674">tagED::hwnd</a>, <a class="el" href="a03743_source.html#l00421">IsWindow()</a>, <a class="el" href="a00131_source.html#l00850">SLInsertText()</a> , 以及 <a class="el" href="a00131_source.html#l00157">SLSetSelection()</a>.</p>

<p class="reference">被这些函数引用 <a class="el" href="a00131_source.html#l02120">SLEditWndProc()</a> , 以及 <a class="el" href="a00131_source.html#l00993">SLReplaceSel()</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aa00125_html_a1a1b70e84040ea5b89332b2153855e5e"><div class="ttname"><a href="a00125.html#a1a1b70e84040ea5b89332b2153855e5e">ECNotifyParent</a></div><div class="ttdeci">void ECNotifyParent(PED ped, int notificationCode)</div><div class="ttdef"><b>Definition:</b> <a href="a00125_source.html#l01833">editec.c:1833</a></div></div>
<div class="ttc" id="aa00122_html_a6321a49a13ae3923b1d9efae1c6650c9"><div class="ttname"><a href="a00122.html#a6321a49a13ae3923b1d9efae1c6650c9">ECSetPasswordChar</a></div><div class="ttdeci">void ECSetPasswordChar(PED ped, UINT pwchar)</div><div class="ttdef"><b>Definition:</b> <a href="a00122_source.html#l00409">edecrare.c:409</a></div></div>
<div class="ttc" id="aa01901_html_ae6ba237f88595c95385cfd18629c0440"><div class="ttname"><a href="a01901.html#ae6ba237f88595c95385cfd18629c0440">tagED::cLines</a></div><div class="ttdeci">ICH cLines</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00649">usercli.h:649</a></div></div>
<div class="ttc" id="aa00131_html_a60d26f83ca8091a6228d59898bd35658"><div class="ttname"><a href="a00131.html#a60d26f83ca8091a6228d59898bd35658">SLInsertText</a></div><div class="ttdeci">ICH SLInsertText(PED ped, LPSTR lpText, ICH cchInsert)</div><div class="ttdef"><b>Definition:</b> <a href="a00131_source.html#l00850">editsl.c:850</a></div></div>
<div class="ttc" id="aa01901_html_afeee4bc01f4c0be43cb8f89d23474f7c"><div class="ttname"><a href="a01901.html#afeee4bc01f4c0be43cb8f89d23474f7c">tagED::fAnsi</a></div><div class="ttdeci">UINT fAnsi</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00729">usercli.h:729</a></div></div>
<div class="ttc" id="aa03743_html_ac5ede70e870dc1cf540d7524887e4edc"><div class="ttname"><a href="a03743.html#ac5ede70e870dc1cf540d7524887e4edc">IsWindow</a></div><div class="ttdeci">BOOL IsWindow(HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00421">client/wow.c:421</a></div></div>
<div class="ttc" id="aa00122_html_a61a46b4348535c21dff33f8b0f27c31f"><div class="ttname"><a href="a00122.html#a61a46b4348535c21dff33f8b0f27c31f">ECSetFont</a></div><div class="ttdeci">void ECSetFont(PED ped, HFONT hfont, BOOL fRedraw)</div><div class="ttdef"><b>Definition:</b> <a href="a00122_source.html#l00574">edecrare.c:574</a></div></div>
<div class="ttc" id="aa00122_html_a1bcaa1b6baec77e98cc2df3c70be0f4b"><div class="ttname"><a href="a00122.html#a1bcaa1b6baec77e98cc2df3c70be0f4b">ECCreate</a></div><div class="ttdeci">BOOL ECCreate(PWND pwnd, PED ped, LONG windowStyle)</div><div class="ttdef"><b>Definition:</b> <a href="a00122_source.html#l00285">edecrare.c:285</a></div></div>
<div class="ttc" id="aa00365_html_a4ca179c80351774ed4d239e34de28927"><div class="ttname"><a href="a00365.html#a4ca179c80351774ed4d239e34de28927">IsEmptyString</a></div><div class="ttdeci">__inline BOOL IsEmptyString(PVOID p, ULONG bAnsi)</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00290">user.h:290</a></div></div>
<div class="ttc" id="aa01901_html_a29e9c1357646dc090d11d6b7e76f9f51"><div class="ttname"><a href="a01901.html#a29e9c1357646dc090d11d6b7e76f9f51">tagED::lpfnCharset</a></div><div class="ttdeci">EDITCHARSETPROC lpfnCharset</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00786">usercli.h:786</a></div></div>
<div class="ttc" id="aa03743_html_a8cdabe45f534639f8a257cfc260d3736"><div class="ttname"><a href="a03743.html#a8cdabe45f534639f8a257cfc260d3736">GetDlgItem</a></div><div class="ttdeci">HWND GetDlgItem(HWND hwnd, int id)</div><div class="ttdef"><b>Definition:</b> <a href="a03743_source.html#l00268">client/wow.c:268</a></div></div>
<div class="ttc" id="aa00125_html_a62fb6804f89dc2b131e76680f82b46a8"><div class="ttname"><a href="a00125.html#a62fb6804f89dc2b131e76680f82b46a8">ECInvalidateClient</a></div><div class="ttdeci">void ECInvalidateClient(PED ped, BOOL fErase)</div><div class="ttdef"><b>Definition:</b> <a href="a00125_source.html#l02076">editec.c:2076</a></div></div>
<div class="ttc" id="aa01901_html_aa72255e7356d612ad72bb45def01fcbb"><div class="ttname"><a href="a01901.html#aa72255e7356d612ad72bb45def01fcbb">tagED::hwnd</a></div><div class="ttdeci">HWND hwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00674">usercli.h:674</a></div></div>
<div class="ttc" id="aa01901_html_af0e577c2f3bf59a3136e8b1641b6f9c0"><div class="ttname"><a href="a01901.html#af0e577c2f3bf59a3136e8b1641b6f9c0">tagED::listboxHwnd</a></div><div class="ttdeci">HWND listboxHwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00763">usercli.h:763</a></div></div>
<div class="ttc" id="aa00257_html_a4d37f42417d0a890212c7dfd845cb8b6"><div class="ttname"><a href="a00257.html#a4d37f42417d0a890212c7dfd845cb8b6">FChildVisible</a></div><div class="ttdeci">BOOL FChildVisible(HWND hwnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00263_source.html#l00052">winmgrc.c:52</a></div></div>
<div class="ttc" id="aa01901_html_a63d2978bed54249f685782e78ce4d423"><div class="ttname"><a href="a01901.html#a63d2978bed54249f685782e78ce4d423">tagED::pwnd</a></div><div class="ttdeci">PWND pwnd</div><div class="ttdef"><b>Definition:</b> <a href="a00257_source.html#l00675">usercli.h:675</a></div></div>
<div class="ttc" id="aa03608_html_afd1a0e78d1f88954d93e48ab3821781f"><div class="ttname"><a href="a03608.html#afd1a0e78d1f88954d93e48ab3821781f">UINT</a></div><div class="ttdeci">typedef UINT(FAR WINAPI *MSGSOUNDPROC)()</div></div>
<div class="ttc" id="aa00125_html_a800e25f9f880d2b371077a3e31d1f11b"><div class="ttname"><a href="a00125.html#a800e25f9f880d2b371077a3e31d1f11b">ECDeleteText</a></div><div class="ttdeci">ICH ECDeleteText(PED ped)</div><div class="ttdef"><b>Definition:</b> <a href="a00125_source.html#l01706">editec.c:1706</a></div></div>
<div class="ttc" id="aa00131_html_a584868ac934740bf29cc8379ae876935"><div class="ttname"><a href="a00131.html#a584868ac934740bf29cc8379ae876935">SLSetSelection</a></div><div class="ttdeci">void SLSetSelection(PED ped, ICH ichSelStart, ICH ichSelEnd)</div><div class="ttdef"><b>Definition:</b> <a href="a00131_source.html#l00157">editsl.c:157</a></div></div>
<div class="ttc" id="aa00365_html_ad92d5fac09a74e3695c68da781de646b"><div class="ttname"><a href="a00365.html#ad92d5fac09a74e3695c68da781de646b">ICH</a></div><div class="ttdeci">DWORD ICH</div><div class="ttdef"><b>Definition:</b> <a href="a00365_source.html#l00469">user.h:469</a></div></div>
<div class="ttc" id="aa00125_html_a5957c933778912cf48cd0ee1a7bb4827"><div class="ttname"><a href="a00125.html#a5957c933778912cf48cd0ee1a7bb4827">ECSetText</a></div><div class="ttdeci">BOOL ECSetText(PED ped, LPSTR lpstr)</div><div class="ttdef"><b>Definition:</b> <a href="a00125_source.html#l02009">editec.c:2009</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e091ed8704426a7a4980368ba259fde.html">git</a></li><li class="navelem"><a class="el" href="dir_cd70cb5eb491250157f2d55d3ff4b13e.html">backup</a></li><li class="navelem"><a class="el" href="dir_ba2b673b566ba104b956abdc6dec0552.html">org</a></li><li class="navelem"><a class="el" href="dir_5bb0003d7907b45051943541418399f5.html">ntuser</a></li><li class="navelem"><a class="el" href="dir_caf01b281dbc7d7ffe410ecf117b6142.html">client</a></li><li class="navelem"><a class="el" href="a00140.html">edslrare.c</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
